<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>

<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
	<meta charset="utf-8" />
	<title>我的外卖_<?php echo ($name); ?></title>
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta content="width=device-width, initial-scale=1.0" name="viewport" />
	<meta content="" name="description" />
	<meta content="" name="author" />
	   <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- Bootstrap -->
 
	<!-- BEGIN GLOBAL MANDATORY STYLES -->          
	
	<link href="<?php echo (TEMPS); ?>/css/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
	<link href="<?php echo (TEMPS); ?>/css/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
	<link href="<?php echo (TEMPS); ?>/css/css.css" rel="stylesheet" type="text/css"/>
   <!-- END GLOBAL MANDATORY STYLES -->
	<!-- BEGIN THEME STYLES --> 
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="__ROOT__/Public/js/html5shiv.min.js"></script>
        <script src="__ROOT__/Public/js/respond.min.js"></script>
    <![endif]-->
	<!-- END THEME STYLES -->
		    <script src="__ROOT__/Public/js/jquery.js"></script>
    <script src="__ROOT__/Public/js/bootstrap.min.js"></script> 
	
 <script src="__ROOT__/Public/js/sco.ajax.js"></script> 
	 

	
</head>
<!-- BEGIN BODY -->
<body>



<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
<meta content="{key}" name="description" />
<meta content="{des}" name="author" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="<?php echo (TEMPS); ?>/css/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
<link href="<?php echo (TEMPS); ?>/css/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
<link href="<?php echo (TEMPS); ?>/css/css.css" rel="stylesheet" type="text/css"/>
<script src="__ROOT__/Public/js/jquery.js"></script>
<script src="__ROOT__/Public/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="__ROOT__/Public/css/yuwei.css">
<link rel="stylesheet" href="<?php echo (TEMPS); ?>/css/common.css">
<script type="text/javascript" src="<?php echo (TEMPS); ?>/js/common.js"></script>
</head>
<body>
<!-- 头部开始 -->
<div class="headerLine"></div>
    <header>
    	<div class="header">
	    	<div class="left">
	    		<span>订餐热线 :<b>13879144915</b> </span>
	    		<span>服务时间 :<b>08:00-17:00</b> </span>
	    	</div>
	    	<div class="right">
<!-- 判断,如果用户uid存在,就说么已经登陆 -->
<?php if(empty($uid)): ?><a href="<?php echo U('Public/register/');?>" rel="nofollow">注册</a>
<a rel="nofollow" href="/index.php?m=public&a=login&reurl=<?php echo urlencode('http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); ?>" >登录</a>
<a href="<?php echo U('Member/index/');?>" rel="nofollow">我的外卖</a>
<?php else: ?>    
<a href="<?php echo U('Member/index/');?>"><i class="fa fa-user-md"></i> <?php if(empty($nickname)): echo ($username); else: echo ($nickname); endif; ?></a></li>
<a href="<?php echo U('Member/index/');?>" rel="nofollow"><i class="fa fa-list"></i> 我的外卖</a>
<a href="<?php echo U('Public/logout/');?>" rel="nofollow"><i class="fa fa-power-off"></i> 退出</a><?php endif; ?>
    	</div>
    </header>
 <!-- 头部结束 -->
<nav class="navbar bs-docs-nav" role="navigation"> 
<div class="navhead w120">
	<ul class="nav navbar-nav ulpast">
      <li><a href="__ROOT__">网站首页</a></li>
	  <li><a href="<?php echo U('Gift/index/');?>">礼品兑换</a></li>
	  <li><a href="<?php echo U('List/index/',array('id'=>19));?>">今日推荐</a></li>
     	<?php if(empty($uid)): ?><li><a href="<?php echo U('Members/index/');?>">订单管理</a></li>
			<?php else: ?> 
			<li><a href="<?php echo U('Member/order/');?>">我的订单</a></li><?php endif; ?>
	  <li><a href="<?php echo U('Article/s/',array('id'=>37));?>">关于我们</a></li>
	  <li><a href="<?php echo U('Article/s/',array('id'=>31));?>">联系我们</a></li>
	  <li><a href="<?php echo U('Article/s/',array('id'=>36));?>">服务宗旨</a></li>
	  <li><a href="<?php echo U('Message/index/');?>">给我留言</a></li>
	   <div class="lines">
	   	<span class="hover">1</span>
	   </div>
    </ul>
 </div>
  </div><!-- /.navbar-collapse -->
</nav>
<script type="text/javascript">
	$(document).ready(function() {
		lens =$('.ulpast').find('li').length;
		$('.ulpast').find('li').hover(function() {
			w = $(this).width();
			z = $(this).index();
			$('.lines .hover').stop().animate({left: w*z}, 500)
		}, function() {
			
		});
	});
</script>
 <!-- 全局左侧导航菜单 -->
  <div class="col-md-2 hidden-xs" id="menus" style='width:180px'> 
	<img width='150' src='<?php echo (TEMPS); ?>/images/doctor.png' style='z-index:999;position:relative;top:5px;'>
     <ul class="list-unstyled left-border" style="position:relative">
     <div class="topicon" style="text-align:center">
     	
     </div>
      <?php if(is_array($foodcatlist)): $i = 0; $__LIST__ = array_slice($foodcatlist,0,7,true);if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$sub): $mod = ($i % 2 );++$i;?><li> <a href="<?php echo U('List/index','id='.$sub['fcid']);?>" class="list-group-item"><span style="margin-left:30px;"><?php echo ($sub["fcname"]); ?></span><span class="fa fa-caret-right pull-right"></span></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
      <div class="icon">
       	嗨
       </div>
     </ul> 
    </div> 
 <!-- 全局左侧导航菜单 -->

<div class="h10"></div>








<div class=" container " style="margin-top:10px;min-height:500px;">

<div class="row">
     <div class=" col-lg-2 col-md-2 col-xs-12">
	 
	    <ul class="list-group list-unstyled" style="font-size:14px;">
	<li class="list-group-item " style="background-color: #F5F5F5;"><i class="fa fa-th-large"></i> 我的外卖</li>
 <a href="<?php echo U('Member/Order/');?>" class="list-group-item list-group-items">我的订单  </a>
 <a href="<?php echo U('Address/index/');?>" class="list-group-item list-group-items">我的地址  </a>
 <a href="<?php echo U('Member/about/');?>" class="list-group-item list-group-items">基本信息  </a>
   <a href="<?php echo U('Member/credit/');?>" class="list-group-item list-group-items">我的积分  </a>
   <a href="<?php echo U('Member/message/');?>" class="list-group-item list-group-items">我的留言  </a>
  
 
 
</ul> 
	 
	
	 </div>
	  <div class="col-lg-10 col-md-10 col-xs-12 " >
	  
 <div class="panel panel-default">
       	         <div class="panel-heading">
    <h3 class="panel-title">地址管理</h3>
  </div>
        <div class="panel-body">
	


	<p>	<a href="<?php echo U('Address/add/');?>" data-toggle="modal" data-target="#myModal" class="btns green pull-right" >增加地址</a></p>

         <table class="table ta">
        <thead>
          <tr>
            <th>收货人</th>
            <th>手机号</th>
            <th>地址</th>
            <th>状态</th>
			<th>操作</th>
          </tr>
        </thead>
        <tbody style="font-size:12px;">
		<?php if(is_array($adlist)): $i = 0; $__LIST__ = $adlist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
            <td><?php echo ($vo["name"]); ?></td>
            <td><?php echo ($vo["tel"]); ?></td>
            <td><?php echo ($vo["address"]); ?></td>
			<td>
			<?php if(($vo["addtop"]) == "1"): ?>默认<?php else: endif; ?>

			
			</td>
          <td>
			<a href="<?php echo U('Address/del/','id='.$vo['faddid']);?>" >删除</a>
			<?php if(($vo["addtop"]) == "1"): else: ?>
			<a href="<?php echo U('Address/addtop/','id='.$vo['faddid']);?>" >默认地址</a><?php endif; ?>

			</td>
           
          </tr><?php endforeach; endif; else: echo "" ;endif; ?>
     
        </tbody>
      </table>
	   
	  
        </div>
      </div>
	    <div class="row">
					  <div class="col-md-7 col-sm-12">
					  </div>
					  <div class="col-md-5 col-sm-12">
					          

                              <ul class="pagination pull-right">
							    <?php echo ($page); ?>
                                
                             </ul>


					  </div>
					  
					  
					  </div>
			 
		
			 
			 
			 
			 
			 	 
 
 
 


			 </div> 
			 
			 
			 
			 
		
			 </div>

    
</div><!-- end container -->



<div class="footer">

<footer>
 	<div class="message">
 		<li>
 			<a href="<?php echo U('Article/s/',array('id'=>39));?>" target='_blank'>小店介绍</a>|
 			<a href="<?php echo U('Article/s/',array('id'=>37));?>" target='_blank'>关于我们</a>|
 			<a href="<?php echo U('Article/s/',array('id'=>40));?>" target='_blank'>加盟须知</a>|
 			<a href="<?php echo U('Article/s/',array('id'=>41));?>" target='_blank'>小店招聘</a>
 		</li>
 		<li>
 			<a href='http://weibo.com/u/2526298841' target='_blank'><span> @2014  甜蜜爱恋  All rights reserved</span> </a>
 		</li>
 		<li>
 			<span> Weicake | 赣ICP备11007040号-4</span>
 		</li>
 	</div>
 </footer>	


<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  
</div><!-- /.modal -->	 
   
 

</body>
<!-- END BODY -->
</html>